{extend name="$BASE_POPUP_FORM" /}
{block name="body"}
<div class="box-content">
    <div class="control-row col-2">

        <div class="control-group">
            <label class="control-label">锁仓类型</label>
            <div class="controls">
                <select name="type" id="type" class="form-control">
                    <option value="1">普通锁仓（USDT/DC/KOF）</option>
                    <option value="2">代理锁仓（DC）</option>
                    <option value="3">希望锁仓（DC/KOF）</option>
                </select>
            </div>
        </div>
        <input name="id" value="{$id}" type="hidden" />
        <div class="control-group">
            <label class="control-label">用户名</label>
            <div class="controls">
                <input id="user_id" name="user_id" data-ui="combosearch" data-options="{valueField:'id',textField:'phone',showList:true,matchFields:['username'],data:user_data,searchWin:openSearchWin}"
                       class="form-control"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">额度</label>
            <div class="controls">
                <input type="number" id="amount" name="amount" placeholder="额度" class="form-control required" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">释放比率（%）</label>
            <div class="controls">
                <input type="number" id="release_tax" name="release_tax" placeholder="填1就是1%" class="form-control required" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">币种</label>
            <div class="controls">
                <select name="balance_type" id="balance_type" class="form-control">
                    <option value="1">USDT</option>
                    <option value="2">DC</option>
                    <option value="3">KOF</option>
                </select>
            </div>
        </div>

    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    var user_data ={$user_list};
    function openSearchWin(){
        var url = getURL('member/select_user','','member');
        openBarWinParent('选择用户', 500, 600, url, function (data) {
            $("#user_id").setValue(data);
        }, ['选定', '取消']);
    }

</script>
{/block}


